package demo.controller;

import demo.config.ListConfig;
import demo.config.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-07-08
 * Time: 11:56
 */
@RestController
public class StudentController {
    @Autowired
    private Student student;

    @Autowired
    private ListConfig listConfig;

    @RequestMapping("/student")
    public String getStudent() {
        return student.toString();
    }

    @RequestMapping("/list")
    public String getlist(){
        return listConfig.toString();
    }
}
